package com.coderman.common.model.system;

import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Excel("department")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_department")
public class Department implements Serializable {

	private static final long serialVersionUID = 231734930811302170L;

	@Id
	@ExcelField(value = "编号", width = 50)
	private Long id;

	@ExcelField(value = "部门名称", width = 100)
	private String name;

	@ExcelField(value = "联系电话", width = 120)
	private String phone;

	@ExcelField(value = "部门地址", width = 150)
	private String address;

	@ExcelField(value = "创建时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
	private Date createTime;

	@ExcelField(value = "修改时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
	private Date modifiedTime;

}
